package com.junzhiit.nengji.api.service;

import java.util.List;

import com.junzhiit.nengji.api.web.vo.CouponSearchVO;
import com.junzhiit.nengji.api.web.vo.CouponsDetailsVO;
import com.junzhiit.nengji.api.web.vo.ResultVO;
import com.junzhiit.nengji.bo.CouponsDetailsBO;
import com.junzhiit.nengji.bo.UserCouponsInfoBO;
import com.junzhiit.nengji.model.UserCoupons;

public interface CouponsService {
	
	public ResultVO findAllByUser(CouponSearchVO vo,int pageNumber, int maxPageRow);
	
	public ResultVO findAll(String userId, int pageNumber, int maxPageRow);
	
	public ResultVO insert(String userId,String couponsId);
	
	public List<UserCoupons> batchInsert(String userId, List<CouponsDetailsBO> list);
	
	/**
	 * TODO	兑换优惠劵
	 * @author DlamLiu
	 * @time 2018年7月7日 下午2:09:45
	 * @return ResultVO
	 * 
	 */
	public ResultVO exchange(String promoCode,String userId);
	
	public List<CouponsDetailsVO> formatCoupons(List<UserCouponsInfoBO> list);
	
	public List<CouponsDetailsVO> formatCouponsByUserCouponsBO(List<CouponsDetailsBO> list);
	
	/**
	 * TODO	新用户专属红包优惠劵
	 * @author DlamLiu
	 * @time 2018年7月20日 下午5:09:34
	 * @return List<CouponsDetailsVO>
	 * 
	 */
	public ResultVO exclusive(String userId);
	
}
